pCon.planner Plugin SDK  Version 8.16
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events
Public Member Functions | Properties | List of all members
X3g::Plugin::IOpenGLRenderer Class Reference

Realtime OpenGL Renderer. More...

Public Member Functions

IImage^ RenderImage (int pWidth, int pHeight)
 Renders image with given width and height. More...
 
Image^ RenderImage (int pWidth, int pHeight, IEnumerable< DbEntity^ >^pEntities)
 Renders image of given modelspace entities with given width and height. More...
 
Image^ RenderImage (int pWidth, int pHeight, IEnumerable< DbEntity^ >^pEntities, LayerFilter pLayerFilter)
 Renders image based on OpenGL renderer. More...
 

Properties

ICamera^  Camera [get]
 Camera parameters. More...
 
IRenderStyle^  Style [get, set]
 Rendering style. More...
 
System::Drawing::Color BackgroundColor
 Sets custom background color. More...
 

Detailed Description

Realtime OpenGL Renderer.

Member Function Documentation

X3g::Plugin::IImage X3g::Plugin::IOpenGLRenderer::RenderImage ( int  pWidth,
int  pHeight 
)

Renders image with given width and height.

Returned image has pre-multiplied alpha in case of transparent background.

Image X3g::Plugin::IOpenGLRenderer::RenderImage ( int  pWidth,
int  pHeight,
IEnumerable< DbEntity^ >^  pEntities 
)

Renders image of given modelspace entities with given width and height.

Returned image has pre-multiplied alpha in case of transparent background.

Image X3g::Plugin::IOpenGLRenderer::RenderImage ( int  pWidth,
int  pHeight,
IEnumerable< DbEntity^ >^  pEntities,
LayerFilter  pLayerFilter 
)

Renders image based on OpenGL renderer.

Parameters
pWidthRender output width.
pHeightRender output height.
pEntitiesSelect specific top level entities or null for all.
pLayerFilterOverride Layer visibility with this option.

Returned image has pre-multiplied alpha in case of transparent background.

Property Documentation

System:: Drawing:: Color X3g::Plugin::IOpenGLRenderer::BackgroundColor

Sets custom background color.

White by default.

ICamera^ X3g::Plugin::IOpenGLRenderer::Camera
get

Camera parameters.

It's not allowed to assign another camera reference. Use ICamera::CopyFrom() instead.

IRenderStyle^ X3g::Plugin::IOpenGLRenderer::Style
getset

Rendering style.